package com.xqboss.apps.dto.equipment;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import java.math.BigDecimal;

/**
 * <p>
 *     计算装备收益
 * </p>
 * @author Administrator
 */
@Data
@ApiModel
public class EquipmentIncomeDto {

    @ApiModelProperty("用户装备id")
    @NotNull(message = "请选择用户装备ID")
    private Long userNftId;

    @NotNull(message = "请输入幸运值加点")
    @PositiveOrZero(message = "幸运值加点不能为负数")
    @ApiModelProperty("幸运值加点")
    private Integer luck;

    @NotNull(message = "请输入天赋值加点")
    @PositiveOrZero(message = "天赋值加点不能为负数")
    @ApiModelProperty("天赋值加点")
    private Integer talent;

    @NotNull(message = "请输入耐久值加点")
    @PositiveOrZero(message = "耐久值加点不能为负数")
    @ApiModelProperty("耐久值加点")
    private Integer durable;

    @NotNull(message = "请输入坚固值加点")
    @PositiveOrZero(message = "坚固值加点不能为负数")
    @ApiModelProperty("坚固值加点")
    private Integer strong;

    @ApiModelProperty("进化热豆消耗")
    @Min(value = 0, message = "进化融入数量不能小于0")
    private BigDecimal evolveHotBeans;
}
